﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 剧情设计器2._0
{
    [Serializable]
    public class Relationship
    {
        //关系的主动角色
        public string active_character = "";
        //关系的被动角色
        public string passive_character = "";
        //两个角色之间的关系
        public string relationship = "";
        //标记是建立关系(true)，还是删除关系（false）
        public bool build;
        //对关系的描述
        public string description = "";

        public override int GetHashCode()
        {
            int code = active_character.GetHashCode();
            code += passive_character.GetHashCode();
            code += relationship.GetHashCode();
            code += build.GetHashCode();
            code += description.GetHashCode();
            return code;
        }
    }
}
